//
// Created by wze-zero on 2024/7/28 028.
//
#include <iostream>
#include <cstring>

using namespace std;

int main() {
    char str[100];
    string s1, s2, s3;
    int num1, num2;
    int i;
    cin.getline(str, sizeof(str));
    for (i = 0; i < 3; ++i) {
        s1 += str[i];
    }
    ++i;
    while (str[i] != ' ') {
        s2 += str[i];
        ++i;
    }
    ++i;
    num1 = stoi(s2);
    while (str[i] != '\0') {
        s3 += str[i];
        ++i;
    }
    num2 = stoi(s3);
    if (strcasecmp(s1.c_str(), "add") == 0) {
        cout << num1 + num2 << endl;
    } else if (strcasecmp(s1.c_str(), "sub") == 0) {
        cout << num1 - num2 << endl;
    } else if (strcasecmp(s1.c_str(), "mul") == 0) {
        cout << num1 * num2 << endl;
    } else if (strcasecmp(s1.c_str(), "div") == 0) {
        if (num2 != 0) {
            cout << num1 / num2 << endl;
        } else {
            cout << "Error" << endl;
        }
    }
    return 0;
}